package com.power.sifa.base.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.base.model.Apl_common_notice;
import com.power.sifa.base.model.pageInfo.Apl_common_noticePageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  公告推送类 Feign
 */
public interface IApl_common_noticeFeign {

    /**
     * 公告推送类分页列表
     */
    @PostMapping("/apl_common_notice/list")
    ResponseDTO list(@RequestBody Apl_common_noticePageInfo apl_common_noticePageInfo);

    /**
    * 查看公告推送类
    */
    @GetMapping("/apl_common_notice/view")
    ResponseDTO view(@RequestParam("id") Integer id);

    /**
    * 删除公告推送类
    */
    @PostMapping("/apl_common_notice/delete")
    ResponseDTO delete(@RequestParam("id") Integer id);

    ///**
    // * 查看公告推送类 复合主键使用
    // */
    //@PostMapping("/apl_common_notice/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_common_notice.Apl_common_noticePK pk);

    /**
     * 修改或保存公告推送类
     */
    @PostMapping("/apl_common_notice/save")
    ResponseDTO save(@RequestBody Apl_common_notice apl_common_notice);

    ///**
    // * 删除公告推送类 复合主键使用
    // */
    //@PostMapping("/apl_common_notice/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_common_notice.Apl_common_noticePK pk);
    
    /**
     * 批量删除公告推送类
     */
    @PostMapping("/apl_common_notice/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/apl_common_notice/output")
    void output(HttpServletResponse response, @RequestBody Apl_common_noticePageInfo apl_common_noticePageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/apl_common_notice/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/apl_common_notice/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException;


    /**
     *	导入excel
     */
    @PostMapping("/apl_common_notice/sendMessage")
    ResponseDTO sendMessage(@RequestBody Apl_common_notice notice);
    
}
